import React, { Component } from 'react'
import { Modal, Button } from 'antd';

export default class FormModal extends Component {
    constructor() {
        this.state = {
            visible: false
        }
    }

    handleCancel = () => {
        console.log('Clicked cancel button');
        this.setState.visible=true
    };

    handleOk = () => {
        // setModalText('The modal will be closed after two seconds');
        // setConfirmLoading(true);
        setTimeout(() => {
            // setVisible(false);
            // setConfirmLoading(false);
        }, 2000);
    }
    showModal = () => {
        // setVisible(true);
    };

    render() {
        return (
            <div>
                <Modal
                    title="Title"
                    visible={this.state.visible}
                    // onOk={handleOk}
                    // confirmLoading={confirmLoading}
                    // onCancel={handleCancel}
                >
                    <p>2022年4月19日23:00:20</p>
                </Modal>
            </div>
        )
    }
}
